package com.atguigu.srb.core.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 借款信息表
 * </p>
 *
 * @author Atguigu
 * @since 2024-04-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("借款信息接受查询参数的VO")
public class BorrowInfoSearchVO implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty("借款信息的id")
    private Long borrowInfoId;
    @ApiModelProperty(value = "姓名/手机号的关键字")
    private String keyword;

    @ApiModelProperty(value = "借款金额开始")
    private BigDecimal amountStart;
    @ApiModelProperty(value = "借款金额结束")
    private BigDecimal amountEnd;

    @ApiModelProperty(value = "借款期限开始")
    private Integer periodStart;
    @ApiModelProperty(value = "借款期限结束")
    private Integer periodEnd;

    @ApiModelProperty(value = "年化利率开始")
    private BigDecimal borrowYearRateStart;

    @ApiModelProperty(value = "年化利率结束")
    private BigDecimal borrowYearRateEnd;

    @ApiModelProperty(value = "还款方式 1-等额本息 2-等额本金 3-每月还息一次还本 4-一次还本")
    private Integer returnMethod;

    @ApiModelProperty(value = "资金用途")
    private Integer moneyUse;

    @ApiModelProperty(value = "状态（0：未提交，1：审核中， 2：审核通过， -1：审核不通过）")
    private Integer status;

    // 接受前端传来的时间日期字符串，要通过String来接受
    // 或者 通过Date来接受，加上注解 @DateTimeFormat()
    @ApiModelProperty(value = "申请时间开始")
    private String createTimeStart;
    @ApiModelProperty(value = "申请时间结束")
    private String createTimeEnd;

}
